import axios from "axios";

// 创建 axios 实例
const instance = axios.create({
    baseURL: 'http://localhost:8088',
    timeout: 10000,
    headers: {
        'Authorization': `Bearer `
    }
});

// 定义一个函数来封装响应拦截器逻辑
instance.interceptors.response.use(function (response) {
    if (response.status == 200) {
      return response.data;
    }
  }, function (error) {
    return Promise.reject(error);
  });


// 导出 axios 实例
export default instance;